package com.viphuli.app.tool.handler;

import java.util.List;

import android.widget.BaseAdapter;

import com.viphuli.app.tool.adapter.CircleDepartmentListAdapter;
import com.viphuli.app.tool.bean.page.CircleDepartmentPage;
import com.viphuli.app.tool.bean.part.CircleDepartment;
import com.viphuli.app.tool.fragment.CircleDepartmentListFragment;

public class CircleDepartmentListResponseHandler extends MyBaseHttpResponseHandler<CircleDepartmentListFragment, CircleDepartmentPage>{

	@Override
	public void deal() {
		
		List<CircleDepartment> list = page.getDepartmentList();
		
		caller.getList().clear();
		caller.getList().addAll(list);
		
		BaseAdapter adapter = new CircleDepartmentListAdapter(list);
		caller.setAdapter(adapter);
		caller.getListview().setAdapter(adapter);
	
	}

}

